package com.saiyaemon.blog.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.saiyaemon.blog.mapper.ArticleTagMapper;
import com.saiyaemon.blog.pojo.ArticleTag;
import com.saiyaemon.blog.service.ArticleTagService;

/** 
 * @author  作者 SaiyaEmon
 * @date 创建时间：2017年12月4日 下午1:38:46 
 */
@Service("articleTagService")
@Transactional
public class ArticleTagServiceImpl implements ArticleTagService {

	@Autowired
	ArticleTagMapper articleTagMapper;
	
	@Override
	public int insert(ArticleTag articleTag) {
		return articleTagMapper.insert(articleTag);
	}

	@Override
	public List<ArticleTag> select(ArticleTag articleTag) {
		return articleTagMapper.select(articleTag);
	}

	@Override
	public int delete(ArticleTag articleTag) {
		// TODO Auto-generated method stub
		return articleTagMapper.delete(articleTag);
	}

}
